package com.kf.smartpark.main

import android.app.Service
import android.content.Intent
import android.os.IBinder
import com.alibaba.android.arouter.launcher.ARouter
import com.blankj.utilcode.util.LogUtils
import com.kf.smartpark.MainWebAIDL

class MainWebService : Service() {
    override fun onBind(intent: Intent?): IBinder? {
        return MainWebBinder()
    }

    inner class MainWebBinder : MainWebAIDL.Stub() {
        override fun setWebName(action: String?) {
            when (action) {
                "androidparking" -> {
                    LogUtils.e("androidparking")
                    ARouter.getInstance().build("/parking/parkingactivity").withString("action","main").navigation()
                }
                "androidapply" -> {
                    LogUtils.e("androidapply")
                    ARouter.getInstance().build("/apply/applyactivity").navigation()
                }
                "androidvisit" -> {
                    LogUtils.e("androidvisit")
                    ARouter.getInstance().build("/visitor/visitoractivity").navigation()
                }
                "androidpatrol" -> {
                    LogUtils.e("androidpatrol")
                }
                "androidrepair" -> {
                    LogUtils.e("androidrepair")
                }
                "androidaddrepair" -> {
                    LogUtils.e("androidaddrepair")
                }
                "androidaddculture" -> {
                    LogUtils.e("androidaddculture")
                }
                "androidaddnotice" -> {
                    LogUtils.e("androidaddnotice")
                }
                "androidculture" -> {
                    LogUtils.e("androidculture")
                }
                "androidnotice" -> {
                    LogUtils.e("androidnotice")
                }
                "androidsign" -> {
                    LogUtils.e("androidsign")
                }
                "androidattendance" -> {
                    LogUtils.e("androidattendance")
                }
                "androidproperty" -> {
                    LogUtils.e("androidproperty")
                }
                "androidcheckculture" -> {
                    LogUtils.e("androidcheckculture")
                }
                "androidpeople" -> {
                    LogUtils.e("androidpeople")
                }
            }
        }

    }
}